package com.yunhe.spring;

public class TestBean {
	private String name;
	private String say;
	
	public TestBean(){
		
	}
	public TestBean(String name){
		this.name = name;
	}
	public String getSay() {
		return say;
	}

	public void setSay(String say) {
		this.say = say;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public void say(){
		if(name==null||say==null){
			throw new NullPointerException();
		}
		System.out.println(name+"说:"+say);
	}
	
}
